const initdata = {
    form:{
        sex:0,
        id:'',
        username:'',
        telephone:'',
    },
    selectedRowKeys:[],
    data:[],
    pagination:{},
    loading:false,
}
export default function work(state = initdata,action){
    switch(action.type){
        case 'init_Data':
            return Object.assign({},state,{loading:false,data:action.data,pagination:action.pagination,});
        case 'get_load':
            return Object.assign({},state,{loading:true,});
        case 'load_item':
            return Object.assign({},state,{loading:false,});
        default:
            return state;
    }
}
